import request from "../utils/request";
//全部商品
export const allProduct = () => {
  return request({
    url: "product/all",
    method: "get",
  });
};
//可购买商品
export const availableProduct = () => {
  return request({
    url: "product/buyable",
    method: "get",
  });
};
//通过Id查商品
export const theProduct = (productID) => {
  return request({
    url: `product/get/${productID}`,
    method: "get",
  });
};
//初筛
export const buyProduct = (productID) => {
  return request({
    url: `product/buy/${productID}`,
    method: "get",
  });
};
//购买
export const buyRealProduct = (productID,accountID,value) => {
  return request({
    url: `product/buyreal/${productID}/${accountID}/${value}`,
    method: "get",
  });
};
